package com.rengl.service.impl;


import com.rengl.mapper.UserMapper;
import com.rengl.model.User;
import com.rengl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public void hi() {
       // userMapper.insert()
    }

    @Override
    public void add(User user) {
        userMapper.insert(user);
    }

    @Override
    public List<User> list() {
        return userMapper.selectList(null);
    }

}
